public class demo13 {
    public static void main(String[] args) {
        int[] arr={123, 12, 3445,2178};

        for (int i=0;i<arr.length;i++){
            int  b=arr[i];
            int sum=0;
            while (b>0){
               sum+=b%10;
               b/=10;
            }
            if (sum%2==0){
                System.out.println(arr[i]);
            }
        }

    }
}
